import java.util.Scanner;

class DeltaException extends Exception {
    private double delta;

    public DeltaException(double delta) {
        this.delta = delta;
    }


    public String toString() {
        return "Delta异常: " + delta;
    }
}

public class Main{
    public static void f() throws DeltaException {
        int a, b, c;
        Scanner scan = new Scanner(System.in);
        System.out.println("请输入一元二次方程的系数a、b、c的值");
        a = scan.nextInt();
        b = scan.nextInt();
        c = scan.nextInt();

        double delta = b * b - 4 * a * c;
        if (delta < 0) {
            throw new DeltaException(delta);
        }

        double x1 = (-b + Math.sqrt(delta)) / (2 * a);
        double x2 = (-b - Math.sqrt(delta)) / (2 * a);
        System.out.printf("一元二次方程的解为 %.2f, %.2f", x1, x2);
    }

    public static void main(String[] args) {
        try {
            Main.f();
        } catch (DeltaException de) {
            System.out.println(de.toString());
        }
    }
}